import reshandler from 'services/response-handler'
import Vue from 'vue'
/*
 * 活动详情
 */
function makeData(response) {
    console.log(response)
    let val = response.supports
    let _supports = []
    response.supports.forEach(val=>{
        _supports.push({
            member:val.member
        })
    })
  return _supports
}
export default function (params, success, fail) {
  // request 
  params = Object.assign({}, params, {
    methodName: "ListSpaceSupport",
  })

  // invoke
  this.$.get(params)
    .then(reshandler.success(success, fail, makeData), reshandler.error(fail))
}
